package org.sky.vo;

import org.sky.model.Authority;
import org.sky.model.Person;

import java.util.ArrayList;
import java.util.List;

public class PersonVO extends BaseVO {

    /**
     * 用户编号
     */
    private int id;

    /**
     * 登录帐号
     */
    private String userName;

    /**
     * 登录密码
     */
    private String password;
    private String updatePassword;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 信誉度
     */
    private int credit = 100;

    /**
     * 使用次数
     */
    private int level = 0;
    /**
     * 账号状态
     */
    private boolean enabled;

    /**
     * 权限组
     */
    private Authority authority;

    /**
     * 构造person
     */
    private List<Person> persons = new ArrayList<Person>();
    /**
     * 判断参数
     */
    private int flag;
    /**
     * 选中的用户名
     */
    private String[] userNames;
    /**
     * 调用的方法名
     */
    private String method;
    /**
     * 用户
     */
    private Person person;
    /**
     * 开始的信誉度
     */
    private int startCredit;
    /**
     * 结束的信誉度
     */
    private int EndCredit;
    /**
     * 开始的使用次数
     */
    private int startLevel;
    /**
     * 结束的使用次数
     */
    private int EndLevel;


    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public List<Person> getPersons() {
        return persons;
    }

    public void setPersons(List<Person> persons) {
        this.persons = persons;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Authority getAuthority() {
        return authority;
    }

    public void setAuthority(Authority authority) {
        this.authority = authority;
    }

    public String[] getUserNames() {
        return userNames;
    }

    public void setUserNames(String[] userNames) {
        this.userNames = userNames;
    }

    public int getStartCredit() {
        return startCredit;
    }

    public void setStartCredit(int startCredit) {
        this.startCredit = startCredit;
    }

    public int getEndCredit() {
        return EndCredit;
    }

    public void setEndCredit(int endCredit) {
        EndCredit = endCredit;
    }

    public int getStartLevel() {
        return startLevel;
    }

    public void setStartLevel(int startLevel) {
        this.startLevel = startLevel;
    }

    public int getEndLevel() {
        return EndLevel;
    }

    public void setEndLevel(int endLevel) {
        EndLevel = endLevel;
    }

    public String getUpdatePassword() {
        return updatePassword;
    }

    public void setUpdatePassword(String updatePassword) {
        this.updatePassword = updatePassword;
    }
}